import { createRouter, createWebHistory } from 'vue-router'
import loginview from '../components/login.vue'
import registerview from '../components/register.vue' // 添加这一行
import customerManage from '@/views/customerManage.vue';
import branchManage from '@/views/branchManage.vue';
import accountManage from '../views/AccountManage.vue'
import employeeManage from '@/views/EmployeeManage.vue';
import transactionManage from '@/views/transactionManage.vue';
import LoanManage from '@/views/loanManage.vue';

const routes = [
  // {path:'/login',component:loginview},
  // {path:'/customer',component:customerManage},
  // {path:'/branch',component:branchManage},
  //{path: '/register', component: registerview },
  {path:'/',component:accountManage},
  {path:'/employee',component:employeeManage},
  //{path:'/employee',component:employeeManage},
  //{ path: '/loanManage', component: LoanManage }

]
const router = createRouter(
  {
    history: createWebHistory(),
    routes: routes
  }
);

export default router
